﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucComment" TagName="Comment" Src="../Common/Inc/Comment.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cfg1014m.aspx.cs" Inherits="Updms.Cfg.Cfg1014m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Cfg1014m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Cfg1014m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%" id="table_list_set" runat="server">
				<tr>
					<td style="width:60%;vertical-align:top;">
						<!-- 리스트 시작 -->
						<div class="sub_title_icon" style="margin-bottom:6px;"><asp:Literal id="ltr_stitle_db_criterion" Text="DB기준" runat="server" /><asp:linkbutton id="ibtn_clean_db" Text="정리" runat="server" CssClass="ibtn ibtn_clean" OnClientClick="return chkCleanDb();" OnClick="ibtn_clean_db_Click"></asp:linkbutton></div>
						
						<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="Seq,Table_Nm,Column_Nm,Pgm_Id">
							<Columns>
								<asp:TemplateField HeaderText="S">
									<ItemTemplate>
										<input id="cb_check_db" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="3%" />
								</asp:TemplateField>
								<asp:BoundField DataField="Seq" HeaderText="Seq(X)" Visible="False" HtmlEncode="False" />
								<asp:BoundField DataField="Table_Nm" HeaderText="Table_Nm(X)" Visible="False" HtmlEncode="False" />
								<asp:BoundField DataField="Column_Nm" HeaderText="Column_Nm(X)" Visible="False" HtmlEncode="False" />
								<asp:BoundField DataField="Pgm_Id" HeaderText="Pgm_Id(X)" Visible="False" HtmlEncode="False" />
								<asp:BoundField DataField="Pgm_Nm" HeaderText="프로그램" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="30%" />
								</asp:BoundField>
								<asp:BoundField DataField="Attach_File_Nm" HeaderText="파일명(DB)" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="47%" />
								</asp:BoundField>
								<asp:BoundField DataField="Exist_Db" HeaderText="DB" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="10%" />
								</asp:BoundField>
								<asp:BoundField DataField="Exist_Local" HeaderText="LOCAL" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="10%" />
								</asp:BoundField>
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<div class="div_left">Result : <asp:label id="lbl_result_count" runat="server"></asp:label></div>
					</td>
					<td style="width:1%;"></td>
					<td style="width:39%;vertical-align:top;">
						<div class="sub_title_icon" style="margin-bottom:6px;"><asp:Literal id="ltr_stitle_local_criterion" Text="LOCAL기준" runat="server" /><asp:linkbutton id="ibtn_clean_local" Text="정리" runat="server" CssClass="ibtn ibtn_clean" OnClientClick="return chkCleanLocal();" OnClick="ibtn_clean_local_Click"></asp:linkbutton></div>
						<asp:GridView ID="GridView2" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView2_RowDataBound">
							<Columns>
								<asp:TemplateField HeaderText="S">
									<ItemTemplate>
										<input id="cb_check_local" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="5%" />
								</asp:TemplateField>
								<asp:BoundField DataField="Attach_File_Nm" HeaderText="파일명(LOCAL)" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="85%" />
								</asp:BoundField>
								<asp:BoundField DataField="Exist_Yn" HeaderText="DB" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="10%" />
								</asp:BoundField>
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<!-- 리스트 끝 -->
						<div class="div_left">Result : <asp:label id="lbl_result_count_local" CssClass="lbl_result_count" runat="server"></asp:label></div>
					</td>
				</tr>
				<tr>
					<td style="height:10px; border-bottom:1px solid #cccccc;" colspan="3"></td>
				</tr>
				<tr>
					<td style="height:10px;" colspan="3"></td>
				</tr>
				<tr>
					<td valign="top">
						<!-- 멀티파일 시작 -->
						<div class="sub_title_icon" style="margin-bottom:6px;"><asp:Literal id="ltr_stitle_db_criterion_multi" Text="DB기준 - 멀티" runat="server" /><asp:linkbutton id="ibtn_clean_db_multi" Text="정리" runat="server" CssClass="ibtn ibtn_clean" OnClientClick="return chkCleanDbMulti();" OnClick="ibtn_clean_db_multi_Click"></asp:linkbutton></div>
						
						<asp:GridView ID="GridView3" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView3_RowDataBound" DataKeyNames="Activity_Id,Pgm_Id,File_Id">
							<Columns>
								<asp:TemplateField HeaderText="S">
									<ItemTemplate>
										<input id="cb_check_db_multi" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="3%" />
								</asp:TemplateField>
								<asp:BoundField DataField="Pgm_Nm" HeaderText="프로그램" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="25%" />
								</asp:BoundField>
								<asp:BoundField DataField="File_Dir" HeaderText="경로" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="10%" />
								</asp:BoundField>
								<asp:BoundField DataField="Attach_File_Nm" HeaderText="파일명(DB)" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="46%" />
								</asp:BoundField>
								<asp:BoundField DataField="Exist_Db" HeaderText="DB" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="8%" />
								</asp:BoundField>
								<asp:BoundField DataField="Exist_Local" HeaderText="LOCAL" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="8%" />
								</asp:BoundField>
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<div class="div_left">Result : <asp:label id="lbl_result_count_db_multi" CssClass="lbl_result_count" runat="server"></asp:label></div>
					</td>
					<td></td>
					<td valign="top">
						<div class="sub_title_icon" style="margin-bottom:6px;"><asp:Literal id="ltr_stitle_local_criterion_multi" Text="LOCAL기준 - 멀티" runat="server" /><asp:linkbutton id="ibtn_clean_local_multi" Text="정리" runat="server" CssClass="ibtn ibtn_clean" OnClientClick="return chkCleanLocalMulti();" OnClick="ibtn_clean_local_multi_Click"></asp:linkbutton></div>
						<asp:GridView ID="GridView4" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView4_RowDataBound">
							<Columns>
								<asp:TemplateField HeaderText="S">
									<ItemTemplate>
										<input id="cb_check_local_multi" class="cb" type="checkbox" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="5%" />
								</asp:TemplateField>
								<asp:BoundField DataField="File_Dir" HeaderText="경로" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="20%" />
								</asp:BoundField>
								<asp:BoundField DataField="Attach_File_Nm" HeaderText="파일명(LOCAL)" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="65%" />
								</asp:BoundField>
								<asp:BoundField DataField="Exist_Yn" HeaderText="DB" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="10%" />
								</asp:BoundField>
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<div class="div_left">Result : <asp:label id="lbl_result_count_local_multi" CssClass="lbl_result_count" runat="server"></asp:label></div>
					</td>
				</tr>
			</table>			
			<!-- 리스트셋 끝 -->
			<!-- 설명 시작 -->
			<ucComment:Comment id="Comment" runat="server" TagPrefixs="Cfg1014m"></ucComment:Comment>
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
				<asp:label id="lbl_search_flag" runat="server"></asp:label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" alt="" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript">
	//삭제 - DB
	function chkCleanDb() {
		if (!isCheckedOnGridView("GridView1", 0)) {
			msgBox.alert(getMsg(MSG_ERR_156)); //정리할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_021), doCleanDb); //정리하시겠습니까?
		return false;
	}

	//삭제 - LOCAL
	function chkCleanLocal() {
		if (!isCheckedOnGridView("GridView2", 0)) {
			msgBox.alert(getMsg(MSG_ERR_156)); //정리할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_021), doCleanLocal); //정리하시겠습니까?
		return false;
	}

	//삭제 - DB 멀티
	function chkCleanDbMulti() {
		if (!isCheckedOnGridView("GridView3", 0)) {
			msgBox.alert(getMsg(MSG_ERR_156)); //정리할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_021), doCleanDbMulti); //정리하시겠습니까?
		return false;
	}

	//삭제 - LOCAL 멀티
	function chkCleanLocalMulti() {
		if (!isCheckedOnGridView("GridView4", 0)) {
			msgBox.alert(getMsg(MSG_ERR_156)); //정리할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_021), doCleanLocalMulti); //정리하시겠습니까?
		return false;
	}
</script>
</body>
</html>